/*package in;
/*

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

class Poker
{
    public int number;

    String rank;


    public Poker(int number, String rank) {
        this.number = number;
        this.rank = rank;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    @Override
    public String toString() {
        return (number+" "+rank);
    }

}
class Pokers
{
    public static final String[] arr={"♥","♠","♣","♦"};

    public static ArrayList<Poker> buy()
    {
        ArrayList<Poker>pokers=new ArrayList<>();
        int i=0;
        int j=0;
        for(i=0;i<arr.length;i++)
        {
            for(j=1;j<=13;j++)
            {
                Poker a=new Poker(j,arr[i]);
                pokers.add(a);
            }
        }
        return pokers;

    }
    public static ArrayList<Poker> xipai(ArrayList<Poker> pokers)
    {
        int i=0;
        for(i=pokers.size()-1;i>0;i--) {
            Random random = new Random();
            int index = random.nextInt(i);
            swap(pokers, i, index);
        }
        return pokers;



    }
    /*public static void swap(ArrayList<Poker> pokers,int i,int index) {
        Poker a = pokers.get(i);
        pokers.set(i, pokers.get(index));
        pokers.set(index, a);
    }

    ArrayList<Poker>hand1=new ArrayList();
        ArrayList<Poker>hand2=new ArrayList();
        ArrayList<Poker>hand3=new ArrayList();
        ArrayList<ArrayList<Poker>>a=new ArrayList();
        a.add(hand1);
        a.add(hand2);
        a.add(hand3);
        int i=0;
        for(i=0;i<5;i++)
        {
            int j=0;
            for(j=0;j<3;j++)
            {
                //ArrayList<Poker>f=a.get[j];
                a.get[j].add(pokers.remove(0));

            }
        }
        for(i=0;i<a.size();i++)
        {
            System.out.println("第"+i+1+"的牌:"+a.get(i));
        }
        System.out.println("剩余的牌:"+pokers);

    }















    public static void main(String[] args) {
        ArrayList<Poker> c=buy();
        System.out.println("买牌:"+c);
        ArrayList<Poker> d=xipai(c);
        System.out.println("洗牌:"+d);
        //Pokers a=new Pokers();
        //a.fenpai(c);







    }







/*public class text68
{
    public static void main(String[] args) {
        ArrayList<Poker> c=Pokers.buy();
        System.out.println("买牌:"+c);








    }

 */





//}
